package grape.house.rest.client.impl.estate;

import grape.house.rest.estate.mvc.EstateInnerController;
import grape.house.rest.client.estate.EstateClient;
import grape.house.service.estate.po.Estate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by yangwei
 * Created at 2020/9/28 16:37
 */
@Component
public class EstateClientImpl implements EstateClient {
    @Autowired
    private EstateInnerController estateInnerController;
    @Override
    public String trans(String type, String key) {
        return estateInnerController.trans(type,key);
    }

    @Override
    public boolean support(String type) {
        return estateInnerController.support(type);
    }

    @Override
    public Estate getEstateById(String id) {
        return estateInnerController.getEstateById(id);
    }

    @Override
    public Estate getEstateByCode(String code) {
        return estateInnerController.getEstateByCode(code);
    }
}
